﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace ExtensionsExcercise
{
    public static class StringExtensions
    {
        public static string ToTitleCase(this string text)
        {
            var cultureInfo = new CultureInfo("en-US", false);
            var textInfo = cultureInfo.TextInfo;
            var titleCaseText = textInfo.ToTitleCase(text);
            return titleCaseText;
        }
    }
}
